import axios from "axios";

// 基础API地址
const API_URL = "http://localhost:8080/app/member";

/**
 * 根据 userId 查询会员信息
 * @param {Number} userId 用户ID
 * @returns {Promise}
 */
export const getMemberInfo = (userId) => {
  return axios.get(`${API_URL}/${userId}`); 
};
